package com.junjie.services;

import com.junjie.entity.Apartment;
import com.junjie.utils.CommonResult;

import java.util.List;

public interface ApartmentService {

    //公寓信息查询万能接口
    List<Apartment> selectApartment(Apartment apartment);

    Apartment getOneApartment(Apartment apartment);

    //增加一条公寓信息
    CommonResult<Integer> addApartment(Apartment apartment);

    //修改该一条公寓信息
    CommonResult<Integer> updateApartment(Apartment apartment);

    //删除一条公寓信息
    CommonResult<Integer> deleteApartment(Integer id);

}
